package com.qyhl.webtv.commonlib.entity.act;

import android.os.Parcel;
import android.os.Parcelable;

public class Catalog implements Parcelable {

    /**
     * id : 9295
     * innercode : 002487
     * name : 活动规则
     * parentid : 0
     * logo : http://webtv.i2863.com/sbys/../Images/addpicture.jpg
     * type : 2
     * appstyle : 8
     * isleaf : 1
     * appparam :
     */

    private String id;
    private String innercode;
    private String name;
    private String parentid;
    private String logo;
    private String type;
    private String appstyle;
    private String isleaf;
    private String appparam;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getInnercode() {
        return innercode;
    }

    public void setInnercode(String innercode) {
        this.innercode = innercode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentid() {
        return parentid;
    }

    public void setParentid(String parentid) {
        this.parentid = parentid;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAppstyle() {
        return appstyle;
    }

    public void setAppstyle(String appstyle) {
        this.appstyle = appstyle;
    }

    public String getIsleaf() {
        return isleaf;
    }

    public void setIsleaf(String isleaf) {
        this.isleaf = isleaf;
    }

    public String getAppparam() {
        return appparam;
    }

    public void setAppparam(String appparam) {
        this.appparam = appparam;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.innercode);
        dest.writeString(this.name);
        dest.writeString(this.parentid);
        dest.writeString(this.logo);
        dest.writeString(this.type);
        dest.writeString(this.appstyle);
        dest.writeString(this.isleaf);
        dest.writeString(this.appparam);
    }

    protected Catalog(Parcel in) {
        this.id = in.readString();
        this.innercode = in.readString();
        this.name = in.readString();
        this.appparam = in.readString();
        this.parentid = in.readString();
        this.isleaf = in.readString();
        this.logo = in.readString();
        this.type = in.readString();
        this.appstyle = in.readString();
    }

    public static final Creator<Catalog> CREATOR = new Creator<Catalog>() {
        @Override
        public Catalog createFromParcel(Parcel source) {
            return new Catalog(source);
        }

        @Override
        public Catalog[] newArray(int size) {
            return new Catalog[size];
        }
    };
}
